package com.yixin.hospital.entity.dto.req.supplier;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("编辑供应商请求体")
public class SupplierEditReqDTO {
    @ApiModelProperty(value = "id", example = "1")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "供应商名称", example = "河北供应商")
    @NotBlank(message = "供应商名称不能为空")
    private String name;

    @ApiModelProperty(value = "供应商联系人", example = "王抚顺")
    @NotBlank(message = "供应商联系人不能为空")
    private String contactName;

    @ApiModelProperty(value = "供应商联系电话", example = "15981166466")
    @NotBlank(message = "供应商联系电话不能为空")
    private String contactPhone;
}
